package com.yongchun.pubInter;


import java.util.List;

/**
 * @author afeng
 * @version 1.0
 * @date 2022/8/29 下午9:34
 */
public interface IBaseFindService<T extends BaseIdDoMain<KeyType>,TS extends BaseSearch,KeyType> {


    /**
     * 得到详情
     * @param id
     * @return
     * @throws Exception
     */
    T getDetail(KeyType id) throws SkException;



    List<T> getAll(TS search) throws SkException;


    /**
     *
     * @param search
     * @return
     * @throws Exception
     */
    List<T> getList(TS search) throws SkException;


    /**
     * 分页
     * @param search
     * @return
     */
    PageResult<T> paginate(TS search) throws SkException;


    /**
     *
     * @param search
     * @return
     * @throws Exception
     */
    long getListCount(TS search) throws SkException;





    T getDetailBySearch(TS search);










}
